package com.online.college.core.message.service.impl;

import com.online.college.core.message.dao.MessageDao;
import com.online.college.core.message.domain.Message;
import com.online.college.core.message.service.IMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl implements IMessageService {
	
	@Autowired
	private MessageDao messageDao;


	@Override
	public Message getById(Long id) {

		return messageDao.getById(id);
	}

	@Override
	public List<Message> queryListByType(String type) {
		return messageDao.queryListByType(type);
	}
}


